@extends('home.layout.user')
@section('user')

<div class="m_right">
            
            <table border="1" class="mem_tab" style="width:870px; text-align:center; margin-top:20px;" cellspacing="0" cellpadding="0">
              <tbody><tr>
                <td class="th_bg" colspan="7">我的购买<a href="/publish" style="margin-left:660px;"><button>去发布</button></a></td>
              </tr>
              <tr>
              <td width="145"  >商品缩略图</td>
                <td width="145" class="td_bg">商品名</td>
                <td width="145" >订单号</td>
                <td width="145" class="td_bg">价格</td>
                <td width="145">发货单号</td>
                <td width="145" class="td_bg">状态</td>
                <td width="145">操作</td>
              </tr>
              @foreach($order as $v)
               <tr>
               	<td width="145"><img src="{{ $v['pic'] }}"  style="width:122px;height:61px" alt="缩略图"></td>
                <td width="145" class="td_bg">{{ $v['title'] }}</td>
                <td width="145">{{$v['code']}}</td>
                <td width="145"  class="td_bg">{{$v['cost']}}</td>
                <td width="145">{{$v['shipments']}}</td>
                <td width="145" class="td_bg">{{$v['status']}}</td>
                <td width="145"> @if($v['status']=='交易完成') <a href="/myorderdel?id={{$v['id']}}" >删除</a>  @else<a href="/affirm?id={{$v['id']}}" id="affirm">确认收货</a>@endif</td>
              </tr>
              @endforeach
            </tbody></table>


                                                                         
 
                       
            
			


            
        </div>

@endsection